<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html>
<head>
<title>网站基本管理</title>
<link rel="shortcut icon" href="/img/favicon.ico" />
<script type="text/javascript" src="/js/jq.js"></script>
<script type="text/javascript" src="/js/global.js"></script>
<link rel="stylesheet" href="/css/global.css" />
<link rel="stylesheet" href="/css/bootstrap.min.css">
<script src="/js/popper.min.js"></script>
<script src="/js/bootstrap.min.js"></script>	
<script type="text/javascript" src="/js/font_593825_j2lr0srcc6u323xr.js"></script>
<link rel="stylesheet" href="/layui/css/layui.css">
<script src="/layui/layui.js"></script>
<script src="/layui/layui.all.js"></script>
 <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css" /> 

<style>
    .icon {
       width: 1em; height: 1em;
       vertical-align: -0.15em;
       fill: currentColor;
       overflow: hidden;
    }	
    	.modal-dialog {
		max-width: 1000px;
	}	
		.popover-content {
			display: flex;
			align-items: center;
			box-sizing: content-box;
		}
		.span-c-iconWrapper {
			border-radius: 4px;
			display: inline-flex;
			border: 1px solid silver;
			padding: 6px 7px 8px 7px;
			margin-left: 6px;
		}
		.span-c-iconWrapper > svg {
			font-size: 18px;
			cursor: pointer;
		}
		.popover-body {
			display: flex;
			align-items: center;
		}
		.span-c-iconWrapper-active {
			background-color: rgb(51, 122, 183);
			color: white;			
		}
		.svg-c-okIcon {
			fill: white;
		}
		.hourSelect {
			width:auto;
		}
		.panel-body table tr td:first-child {
		width:30%;text-align: center;}
		.panel-body table tr td:last-child {
		width:70%;text-align: left;}		
		.btn-popovers, .td-speicalRoleGuiZe{
			cursor: pointer;
			color:#0088cc!important;
		}
		.td-speicalRoleGuiZe > a {
			border-bottom: dashed 1px #0088cc;
		}
		
		.caozuo{
			display: none;
		}
		
		select.form-control:not([size]):not([multiple]){
			height: auto;
		}
		
		.gundong1 {
    padding: 10px 0;
    padding-left: 10px;
    float: left; 
    height: 100%;
    line-height: 2em;
    border-right: 1px solid #fff;
}

.circle_bg {
    float: left;
}

.circle_bg img {
    width: 1.4em;
}

.gundong1 .seradediv {
    min-width: 3em;
    display: inline-block;
    font-style: normal;
    padding: 0 .5em;
    width:155px;
}

.gundong1 .User_grade {
    display: inline-block;
    width: 120px;
}
.User_grade {
    width: 96px;
    margin: 2px 9px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.User_grade .el-slider {
    cursor: pointer;
}

.el-slider__runway {
    width: 100%;
    height: 4px;
    margin: 1em 0;
    background-color: #d0993b;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}

.el-slider__bar,.el-slider__button {
    background-color: #d0993b !important;
}
.el-slider__bar {
    height: 4px;
    background-color: #20a0ff;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    position: absolute;
}

.el-slider__button-wrapper {
    z-index: 5!important;
}
.el-slider__button-wrapper {
    width: 2em;
    height: 2em;
    position: absolute;
    z-index: 1001;
    top: -1em;
    transform: translateX(-50%);
    background-color: transparent;
    text-align: center;
    -ms-user-select: none;
    user-select: none;
}

.el-slider__button {
    display: inline-block;
    vertical-align: middle;
    width: 0.8em;
    height: 0.8em;
    background-color: #20a0ff;
    border-radius: 50%;
    transition: .2s;
    -ms-user-select: none;
    user-select: none;
}

.agentFrist,.agentTwo{
	float:left;
	margin-top: 11px;
}

.agentMode .btn-infos{
	margin-top: 11px;
	margin-left: 15px;
	color: #fff;
    background-color: #5bc0de;
    border-color: #46b8da;
}
</style>
</head>
<body>
	<div role="tabpanel" class="tab-pane fui-box active">
		<div class="container-fluid">
			<div class="panel panel-default">
				<div class="panel-heading">
					<p>系统配置</p>
				</div>
				<div class="panel-body">
					<table class="table table-bordered table-striped">
						<tr>
							<td>网站维护开关</td>
							<td>
								<a  data-name="weihukaiguan"
								class="  btn-popovers btn-kaiguanBtns" 
								title="网站维护开关"  
								data-container="body" 
								data-placement="right" data-toggle="popover" 
								data-content="<select data-path='/admin/websiteMaintainSetup.do' class='form-control ajax-dataItem' data-name='weihukaiguan'><option value='1'>开启</option><option value='0'>关闭</option></select><span data-readdatatype='turnon' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
								<span class="caozuo" style="margin-left: 50px;color: red;">请谨慎操作！</span>
							</td>
						</tr>
						<tr>
							<td>网站维护原因</td>
							<td>
								<a 
								class="  btn-popovers"  data-name="weihuyuanyin"
								title="网站维护原因" data-toggle="popover"   
								data-container="body"  data-toggle="popover" 
								data-placement="right" 
								data-content="<input data-path='/admin/maintainReasonSetup.do' data-name='weihuyuanyin' class='form-control ajax-dataItem' /><span data-readdatatype='editText' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>帐变记录开关</td>
							<td>
								<a data-name="zhangbiankaiguan" 
								  data-toggle="popover" 
								class="  btn-popovers btn-kaiguanBtns" 
								title="帐变记录开关"  
								data-container="body" 
								data-placement="right" 
								data-content="<select data-path='/admin/flowingWaterSetup.do' class='form-control  ajax-dataItem' data-name='zhangbiankaiguan'><option value='1'>开启</option><option value='0'>关闭</option></select><span data-readdatatype='turnon' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
								<span class="caozuo" style="margin-left: 50px;color: red;">请谨慎操作！</span>
							</td>
						</tr>
						<tr>
							<td>后台登录白名单</td>
							<td>
								<a data-name="baimingdankaiguan"
								 
								class="  btn-popovers btn-kaiguanBtns" 
								title="后台登录白名单"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<select data-path='/admin/whiteListSetup.do' class='form-control ajax-dataItem' data-name='baimingdankaiguan'><option value='1'>开启</option><option value='0'>关闭</option></select><span data-readdatatype='turnon' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						
						 <tr>
							<td>聊天开关</td>
							<td>
								<a data-name="chatroomFlag" 
								  data-toggle="popover" 
								class="  btn-popovers btn-kaiguanBtns" 
								title="聊天开关"  
								data-container="body" 
								data-placement="right" 
								data-content="<select data-path='/admin/chatRoomSetup.do' class='form-control  ajax-dataItem' data-name='chatroomFlag'><option value='1'>开启</option><option value='0'>关闭</option></select><span data-readdatatype='turnon' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
								<span class="caozuo" style="margin-left: 50px;color: red;">请谨慎操作！</span>
							</td>
						</tr> 
						<tr>
							<td>代理返点最低领取金额 </td>
							<td>
								<a 
								class="btn-popovers" data-name="receiveAReturnPoint"
								title="领取代理返点最低金额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input class='form-control ajax-dataItem' data-path='/admin/agentMinMonyeSetup.do' data-name='receiveAReturnPoint' /><span data-readdatatype='editText' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr class="agentMode">
							<td style="line-height: 60px;">选择代理模式</td>
							<td>
								<button class="btn agentFrist hide">第一套</button>
								<button class="btn agentTwo btn-primary">第二套</button>
								<div class="gundong1">
									<!-- <div class="circle_bg"><img src="/img/agent/dollars.png"></div> -->
									<div class="seradediv">当前返点：<span></span></div>
									<div class="User_grade" id="runway">
										<div class="el-slider">
											<div class="el-slider__runway">
												<div class="el-slider__bar"></div>
												<div class="el-slider__button-wrapper" id="drag">
													<div class="el-slider__button el-tooltip"></div>
												</div>
											</div>
										</div>
									</div>
								</div>
								<button class="btn btn-infos">确认</button>
							</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="panel panel-default">
				<div class="panel-heading">
					<p>下注金额配置</p>
				</div>
				<div class="panel-body">
					<table class="table table-bordered table-striped">
						<tr>
							<td>配置一</td>
							<td>
								<a 
								class="  btn-popovers" data-name="buy1"
								title="配置"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input class='form-control ajax-dataItem' data-path='/admin/quickBettingMoneySetup.do' data-name='buy1' /><span data-readdatatype='editText' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>配置二</td>
							<td>
								<a 
								class="  btn-popovers" data-name="buy2"
								title="配置二"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input class='form-control ajax-dataItem' data-path='/admin/quickBettingMoneySetup.do' data-name='buy2' /><span data-readdatatype='editText' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>配置三</td>
							<td>
								<a 
								class="  btn-popovers" data-name="buy3"
								title="配置三"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input class='form-control ajax-dataItem' data-path='/admin/quickBettingMoneySetup.do' data-name='buy3' /><span data-readdatatype='editText' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>配置四</td>
							<td>
								<a 
								class="  btn-popovers" data-name="buy4"
								title="配置四"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input class='form-control ajax-dataItem' data-path='/admin/quickBettingMoneySetup.do' data-name='buy4' /><span data-readdatatype='editText' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>配置五</td>
							<td>
								<a 
								class="  btn-popovers" data-name="buy5"
								title="配置五"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input class='form-control ajax-dataItem' data-path='/admin/quickBettingMoneySetup.do' data-name='buy5' /><span data-readdatatype='editText' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="panel panel-default">
				<div class="panel-heading">
					<p>网站配置</p>
				</div>
				<div class="panel-body">
					<table class="table table-bordered table-striped">
						<tr>
							<td>网站页面头部标题配置</td>
							<td>
								<a 
								class="  btn-popovers" data-name="wangzhantitle"
								title="网站页面头部标题配置"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input class='form-control ajax-dataItem' data-path='/admin/headerTitleSeting.do' data-name='headerTitle' /><span data-readdatatype='editText' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>										
							</td>
						</tr>
						<tr>
							<td>同一IP当天注册会员数</td>
							<td>
								<a 
								class="  btn-popovers" data-name="zhuceipcount"
								title="同一IP当天注册会员数"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input class='form-control ajax-dataItem' data-path='/admin/ipLimitRegisterSetup.do' data-name='ip' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>	
							</td>
						</tr>
						<tr>
							<td>网站logo设置</td>
							<td>
								<img class='img' dataName="file" src="">
							</td>
						</tr>
						<tr>
							<td>网站顶部欢迎语</td>
							<td>
								<a 
								class="btn-popovers" data-name="pc_welcome" title="网站顶部欢迎语"   data-toggle="popover" 
								data-container="body"  data-placement="right" 
								data-content="<input id='pc_welcome' class='form-control ajax-dataItem' data-path='/admin/websiteHeadWelcomeSetup.do' data-name='pc_welcome' />
								<span data-readdatatype='editText' class='span-c-iconWrapper span-c-iconWrapper-active'>
								<svg class='icon svg-c-okIcon' aria-hidden='true'>
								<use xlink:href='#icon-ok'></use></svg></span>
								<span class='span-c-iconWrapper span-c-icon-close' >
								<svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>	
							</td>
						</tr>
						<tr>
							<td>微信客服二维码设置</td>
							<td>
								<img class='img1' dataName="file" src="">
							</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="panel panel-default">
				<div class="panel-heading">
					<p>幸运转盘配置</p>
				</div>
				<div class="panel-body">
					<table class="table table-bordered table-striped">
						<tr>
							<td>幸运转盘设置</td>
							<td>
								<a data-zhuanpan
								  data-name="luckyFlag"
								class="  btn-popovers btn-kaiguanBtns" 
								title="幸运转盘开关"  
								data-container="body" 
								data-placement="right" data-toggle="popover" 
								data-content="<select  data-path='/admin/updateLuckyFlag.do' data-showzhuanpan class='form-control ajax-dataItem' data-name='luckyFlag'><option value='1'>开启</option><option value='0'>关闭</option></select><span data-readdatatype='turnon' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
								<span class="caozuo" style="margin-left: 50px;color: red;">请谨慎操作！</span>
							</td>
						</tr>
						<tr>
							<td>充值金额</td>
							<td>
								<a data-zhuanpan
								class="btn-popovers" data-name="rechargeMoney"
								title="增加抽奖机会所需金额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showzhuanpan class='form-control ajax-dataItem' data-path='/admin/updateLuckyFlag.do' data-name='rechargeMoney' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>	
							</td>
						</tr>
						<tr>
							<td>赠送次数</td>
							<td>
								<a data-zhuanpan
								class="btn-popovers" data-name="returnMoney"
								title="达成充值金额赠送次数"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showzhuanpan class='form-control ajax-dataItem' data-path='/admin/updateLuckyFlag.do' data-name='returnMoney' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>	
							</td>
						</tr>
						<tr>
							<td>转盘页面头部标题配置</td>
							<td>
								<a data-zhuanpan
								class="  btn-popovers" data-name="luckyTitle"
								title="转盘页面头部标题配置"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showzhuanpan class='form-control ajax-dataItem' data-path='/admin/updateLuckyFlag.do' data-name='luckyTitle' /><span data-readdatatype='editText' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>										
							</td>
						</tr>
						
						
						
						<tr>
							<td>打码量达到增加一次摇奖</td>
							<td>
								<a data-zhuanpan
								class="btn-popovers" data-name="dluckCount"
								title="打码量达到增加一次摇奖"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showzhuanpan class='form-control ajax-dataItem' data-path='/admin/updateLuckyFlag.do' data-name='dluckCount' /><span data-readdatatype='editText' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>										
							</td>
						</tr>
						
						<tr>
							<td>打码量达到摇奖开关</td>
							<td>
								<a data-zhuanpan
								  data-name="dluckFlag"
								class="  btn-popovers btn-kaiguanBtns" 
								title="打码量达到摇奖开关"  
								data-container="body" 
								data-placement="right" data-toggle="popover" 
								data-content="<select  data-path='/admin/updateLuckyFlag.do' data-showzhuanpan class='form-control ajax-dataItem' data-name='dluckFlag'><option value='1'>开启</option><option value='0'>关闭</option></select><span data-readdatatype='turnon' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
								<span class="caozuo" style="margin-left: 50px;color: red;">请谨慎操作！</span>
							</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="panel panel-default">
				<div class="panel-heading">
					<p>签到配置</p>
				</div>
				<div class="panel-body">
					<table class="table table-bordered table-striped">
						<tr>
							<td>签到设置</td>
							<td>
								<a data-qiandao 
								  data-name="qiandaoflag"
								class="btn-popovers btn-kaiguanBtns" 
								title="签到设置开关"  
								data-container="body" 
								data-placement="right" data-toggle="popover" 
								data-content="<select data-showqiandao data-path='/admin/signInflag.do' class='form-control ajax-dataItem' data-name='qiandaoflag'><option value='1'>开启</option><option value='0'>关闭</option></select><span data-readdatatype='turnon' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
								<span class="caozuo" style="margin-left: 50px;color: red;">请谨慎操作！</span>
							</td>
						</tr>
						<tr>
							<td>每日充值所需金额</td>
							<td>
								<a data-qiandao
								class="btn-popovers" data-name="meiriMoney"
								title="每日充值所需金额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showqiandao class='form-control ajax-dataItem' data-path='/admin/signInflag.do' data-name='meiriMoney' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>	
						<tr>
							<td>每月充值所需金额</td>
							<td>
								<a data-qiandao
								class="  btn-popovers" data-name="meiyueMoney"
								title="每日充值所需金额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showqiandao class='form-control ajax-dataItem' data-path='/admin/signInflag.do' data-name='meiyueMoney' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>	
						<tr>
							<td>历史所需充值金额</td>
							<td>
								<a data-qiandao
								class="  btn-popovers" data-name="lishiMoney"
								title="每日充值所需金额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showqiandao class='form-control ajax-dataItem' data-path='/admin/signInflag.do' data-name='lishiMoney' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>签到所需余额</td>
							<td>
								<a data-qiandao
								class="  btn-popovers" data-name="yueMoney"
								title="每日充值所需金额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showqiandao class='form-control ajax-dataItem' data-path='/admin/signInflag.do' data-name='yueMoney' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>	
						<tr>
							<td>签到奖金类型</td>
							<td>
								<a data-qiandao
								  data-name="moneyType"
								class="btn-popovers btn-kaiguanBtns btn-jiangjinBtns" 
								title="签到奖金类型"  
								data-container="body" 
								data-placement="right" data-toggle="popover" 
								data-content="<select data-showqiandao data-path='/admin/signInflag.do' class='form-control ajax-dataItem' data-name='moneyType'><option value='1'>固定金额</option><option value='0'>随机金额</option></select><span data-readdatatype='turnon' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
								<span class="caozuo" style="margin-left: 50px;color: red;">请谨慎操作！</span>
							</td>
						</tr>	
						<tr>
							<td>签到奖金随机金额</td>
							<td>
								<a data-qiandao
								class="  btn-popovers" data-name="moneySuiji"
								title="每日充值所需金额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showqiandao class='form-control ajax-dataItem' data-path='/admin/signInflag.do' data-name='moneySuiji' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>签到奖金固定金额</td>
							<td>
								<a data-qiandao
								class="  btn-popovers" data-name="moneyGuding"
								title="每日充值所需金额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showqiandao class='form-control ajax-dataItem' data-path='/admin/signInflag.do' data-name='moneyGuding' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>																																								
					</table>
				</div>
			</div>
			
<div class="panel panel-default">
				<div class="panel-heading">
					<p>系统红包配置</p>
				</div>
				<div class="panel-body">
					<table class="table table-bordered table-striped">
						<tr>
							<td>每日充值所需金额</td>
							<td>
								<a data-hongbao
								class="btn-popovers" data-name="meiriJine"
								title="每日充值所需金额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showhongbao class='form-control ajax-dataItem' data-path='/admin/systemEnvelope.do' data-name='meiriJine' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>	
						<tr>
							<td>每月充值所需金额</td>
							<td>
								<a data-hongbao
								class="  btn-popovers" data-name="meiyueJine"
								title="每月充值所需金额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showhongbao class='form-control ajax-dataItem' data-path='/admin/systemEnvelope.do' data-name='meiyueJine' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>	
						<tr>
							<td>历史所需充值金额</td>
							<td>
								<a data-hongbao
								class="  btn-popovers" data-name="lishiJine"
								title="历史所需充值金额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showhongbao class='form-control ajax-dataItem' data-path='/admin/systemEnvelope.do' data-name='lishiJine' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>所需账号余额</td>
							<td>
								<a data-hongbao
								class="btn-popovers" data-name="yueJine"
								title="所需账号余额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showhongbao class='form-control ajax-dataItem' data-path='/admin/systemEnvelope.do' data-name='yueJine' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>	
					</table>
				</div>
			</div>			
			
			<div class="panel panel-default">
				<div class="panel-heading">
					<p>提款配置</p>
				</div>
				<div class="panel-body">
					<table class="table table-bordered table-striped">
						<tr>
							<td>提款、入款开始处理时间</td>
							<td>
								<a  class="  btn-popovers btn-timesData" data-name="stratchulitime"
									title="提款、入款开始处理时间" data-container="body"  data-toggle="popover" 
									data-placement="right"
								data-content="<select data-path='/admin/startHandleTime.do' data-name='startHandleTime' class='ajax-dataItem hourSelect form-control'><option value='0'>00</option><option value='1'>01</option><option value='2'>02</option><option value='3'>03</option><option value='4'>04</option><option value='5'>05</option><option value='6'>06</option><option value='7'>07</option><option value='8'>08</option><option value='9'>09</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option><option value='13'>13</option><option value='14'>14</option><option value='15'>15</option><option value='16'>16</option><option value='17'>17</option><option value='18'>18</option><option value='19'>19</option><option value='20'>20</option><option value='21'>21</option><option value='22'>22</option><option value='23'>23</option></select>：<select class='minute form-control' style='width: auto;'><option value='0'>00</option><option value='1'>01</option><option value='2'>02</option><option value='3'>03</option><option value='4'>04</option><option value='5'>05</option><option value='6'>06</option><option value='7'>07</option><option value='8'>08</option><option value='9'>09</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option><option value='13'>13</option><option value='14'>14</option><option value='15'>15</option><option value='16'>16</option><option value='17'>17</option><option value='18'>18</option><option value='19'>19</option><option value='20'>20</option><option value='21'>21</option><option value='22'>22</option><option value='23'>23</option><option value='24'>24</option><option value='25'>25</option><option value='26'>26</option><option value='27'>27</option><option value='28'>28</option><option value='29'>29</option><option value='30'>30</option><option value='31'>31</option><option value='32'>32</option><option value='33'>33</option><option value='34'>34</option><option value='35'>35</option><option value='36'>36</option><option value='37'>37</option><option value='38'>38</option><option value='39'>39</option><option value='40'>40</option><option value='41'>41</option><option value='42'>42</option><option value='43'>43</option><option value='44'>44</option><option value='45'>45</option><option value='46'>46</option><option value='47'>47</option><option value='48'>48</option><option value='49'>49</option><option value='50'>50</option><option value='51'>51</option><option value='52'>52</option><option value='53'>53</option><option value='54'>54</option><option value='55'>55</option><option value='56'>56</option><option value='57'>57</option><option value='58'>58</option><option value='59'>59</option></select><span data-readdatatype='editDoubleTime' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>提款、入款结束处理时间</td>
							<td>
								<a  class="  btn-popovers btn-timesData" data-name="endchulitime"
									title="提款、入款结束处理时间" data-container="body"
									data-placement="right"  data-toggle="popover" 
								data-content="<select data-path='/admin/endHandleTime.do' data-name='endHandleTime' class='ajax-dataItem hourSelect form-control'><option value='0'>00</option><option value='1'>01</option><option value='2'>02</option><option value='3'>03</option><option value='4'>04</option><option value='5'>05</option><option value='6'>06</option><option value='7'>07</option><option value='8'>08</option><option value='9'>09</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option><option value='13'>13</option><option value='14'>14</option><option value='15'>15</option><option value='16'>16</option><option value='17'>17</option><option value='18'>18</option><option value='19'>19</option><option value='20'>20</option><option value='21'>21</option><option value='22'>22</option><option value='23'>23</option></select>：<select class='minute form-control' style='width: auto;'><option value='0'>00</option><option value='1'>01</option><option value='2'>02</option><option value='3'>03</option><option value='4'>04</option><option value='5'>05</option><option value='6'>06</option><option value='7'>07</option><option value='8'>08</option><option value='9'>09</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option><option value='13'>13</option><option value='14'>14</option><option value='15'>15</option><option value='16'>16</option><option value='17'>17</option><option value='18'>18</option><option value='19'>19</option><option value='20'>20</option><option value='21'>21</option><option value='22'>22</option><option value='23'>23</option><option value='24'>24</option><option value='25'>25</option><option value='26'>26</option><option value='27'>27</option><option value='28'>28</option><option value='29'>29</option><option value='30'>30</option><option value='31'>31</option><option value='32'>32</option><option value='33'>33</option><option value='34'>34</option><option value='35'>35</option><option value='36'>36</option><option value='37'>37</option><option value='38'>38</option><option value='39'>39</option><option value='40'>40</option><option value='41'>41</option><option value='42'>42</option><option value='43'>43</option><option value='44'>44</option><option value='45'>45</option><option value='46'>46</option><option value='47'>47</option><option value='48'>48</option><option value='49'>49</option><option value='50'>50</option><option value='51'>51</option><option value='52'>52</option><option value='53'>53</option><option value='54'>54</option><option value='55'>55</option><option value='56'>56</option><option value='57'>57</option><option value='58'>58</option><option value='59'>59</option></select><span data-readdatatype='editDoubleTime' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>提款最低金额</td>
							<td>
								<a 
								  data-name="mintikuanjine"
								class="  btn-popovers" 
								title="提款最低金额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input class='form-control ajax-dataItem' data-name='minAmount' data-path='/admin/minAmount.do' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>提款最高金额</td>
							<td>
								<a 
								 data-name="maxtikuanjine"
								class="  btn-popovers" 
								title="提款最高金额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input class='form-control ajax-dataItem' data-name='maxAmount' data-path='/admin/maxAmount.do' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>每日免费提款次数</td>
							<td>
								<a 
								 data-name="meiritikuancount"
								class="  btn-popovers" 
								title="每日提款次数"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input class='form-control ajax-dataItem' data-path='/admin/withdrawalCountDay.do' data-name='withdrawalCountDay' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>提款所需打码量百分比设置</td>
							<td>
								<a data-tikuan 
								class="btn-popovers" data-name="drawingRatio"
								title="普通提款比列设置"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showtikuan class='form-control ajax-dataItem' data-path='/admin/updateDrawingSteup.do' data-name='drawingRatio' /><span data-readdatatype='editNumbers' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon'  aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>提款手续费开关</td>
							<td>
								<a data-tikuan
								data-name="drawingFlag"
								  data-toggle="popover" 
								class="  btn-popovers btn-kaiguanBtns"
								title="提款手续费开关"  
								data-container="body" 
								data-placement="right" 
								data-content="<select data-showtikuan data-path='/admin/updateDrawingSteup.do' class='form-control ajax-dataItem' data-name='drawingFlag'><option value='1'>开启</option><option value='0'>关闭</option></select><span  data-readdatatype='turnon' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon'  aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
								<span class="caozuo" style="margin-left: 50px;color: red;">请谨慎操作！</span>
							</td>
						</tr>
						
						
						<tr>
							<td>日常提款手续费</td>
							<td>
								<a data-tikuan
								class="  btn-popovers" data-name="drawingMoney"
								title="日常提款手续费"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showtikuan class='form-control ajax-dataItem' data-path='/admin/updateDrawingSteup.do' data-name='drawingMoney' /><span data-readdatatype='editNumbers' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon'  aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						
						<tr>
							<td>日常提款次数超出手续费</td>
							<td>
								<a data-tikuan 
								class="  btn-popovers" data-name="dcountMoney"
								title="日常提款次数超出手续费"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input data-showtikuan class='form-control ajax-dataItem' data-path='/admin/updateDrawingSteup.do' data-name='dcountMoney' /><span data-readdatatype='editNumbers' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="panel panel-default">
				<div class="panel-heading">
					<p>存款配置</p>
				</div>
				<div class="panel-body">
					<table class="table table-bordered table-striped">
						<tr>
							<td>人工快速存款开关</td>
							<td>
								<a data-name="kuaisucunkuanflag"
								  data-toggle="popover" 
								class="  btn-popovers btn-kaiguanBtns" 
								title="人工快速存款开关"  
								data-container="body" 
								data-placement="right" 
								data-content="<select data-path='/admin/fastDeposit.do' class='form-control ajax-dataItem' data-name='fastDeposit'><option value='1'>开启</option><option value='0'>关闭</option></select><span data-readdatatype='turnon' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
								<span class="caozuo" style="margin-left: 50px;color: red;">请谨慎操作！</span>
							</td>
						</tr>
						<tr>
							<td>第三方在线存款开关</td>
							<td>
								<a  data-name="disanfangcunkuanflag"
								  data-toggle="popover" 
								class="  btn-popovers btn-kaiguanBtns" 
								title="第三方在线存款开关"  
								data-container="body" 
								data-placement="right" 
								data-content="<select data-path='/admin/depositSwitch.do' class='form-control ajax-dataItem' data-name='depositSwitch'><option value='1'>开启</option><option value='0'>关闭</option></select><span data-readdatatype='turnon' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
								<span class="caozuo" style="margin-left: 50px;color: red;">请谨慎操作！</span>
							</td>
						</tr>
						<tr>
							<td>人工快速存款说明</td>
							<td>
								<a  data-name="kuaisucunkuannote"
								  data-toggle="popover" 
								class="  btn-popovers" 
								title="人工快速存款说明"  
								data-container="body" 
								data-placement="right" 
								data-content="<input data-path='/admin/fastDepositExplain.do' data-name='fastDepositExplain' class='form-control ajax-dataItem' /><span data-readdatatype='editText' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
									
						</tr>
						<tr>
							<td>第三方在线存款说明</td>
							<td>
								<a 
								  data-toggle="popover" data-name="disanfangcunkuannote" 
								class="  btn-popovers" 
								title="第三方在线存款说明"  
								data-container="body" 
								data-placement="right" 
								data-content="<input class='form-control ajax-dataItem' data-path='/admin/thirdDepositExplain.do' data-name='thirdDepositExplain' /><span data-readdatatype='editText' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="panel panel-default">
				<div class="panel-heading">
					<p>在线客服配置</p>
				</div>
				<div class="panel-body">
					<table class="table table-bordered table-striped">
						<tr>
							<td>客服上班时间</td>
							<td>
								<a  class="  btn-popovers btn-timesData" data-name="kefusbtime"
									title="客服上班时间" data-container="body"  data-toggle="popover" 
									data-placement="right"
								data-content="<select data-name='officeHours' data-path='/admin/officeHours.do' class='ajax-dataItem hourSelect form-control'><option value='0'>00</option><option value='1'>01</option><option value='2'>02</option><option value='3'>03</option><option value='4'>04</option><option value='5'>05</option><option value='6'>06</option><option value='7'>07</option><option value='8'>08</option><option value='9'>09</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option><option value='13'>13</option><option value='14'>14</option><option value='15'>15</option><option value='16'>16</option><option value='17'>17</option><option value='18'>18</option><option value='19'>19</option><option value='20'>20</option><option value='21'>21</option><option value='22'>22</option><option value='23'>23</option></select>：<select class='minute form-control' style='width: auto;'><option value='0'>00</option><option value='1'>01</option><option value='2'>02</option><option value='3'>03</option><option value='4'>04</option><option value='5'>05</option><option value='6'>06</option><option value='7'>07</option><option value='8'>08</option><option value='9'>09</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option><option value='13'>13</option><option value='14'>14</option><option value='15'>15</option><option value='16'>16</option><option value='17'>17</option><option value='18'>18</option><option value='19'>19</option><option value='20'>20</option><option value='21'>21</option><option value='22'>22</option><option value='23'>23</option><option value='24'>24</option><option value='25'>25</option><option value='26'>26</option><option value='27'>27</option><option value='28'>28</option><option value='29'>29</option><option value='30'>30</option><option value='31'>31</option><option value='32'>32</option><option value='33'>33</option><option value='34'>34</option><option value='35'>35</option><option value='36'>36</option><option value='37'>37</option><option value='38'>38</option><option value='39'>39</option><option value='40'>40</option><option value='41'>41</option><option value='42'>42</option><option value='43'>43</option><option value='44'>44</option><option value='45'>45</option><option value='46'>46</option><option value='47'>47</option><option value='48'>48</option><option value='49'>49</option><option value='50'>50</option><option value='51'>51</option><option value='52'>52</option><option value='53'>53</option><option value='54'>54</option><option value='55'>55</option><option value='56'>56</option><option value='57'>57</option><option value='58'>58</option><option value='59'>59</option></select><span data-readdatatype='editDoubleTime' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>客服下班时间</td>
							<td>
								<a  class="  btn-popovers btn-timesData" data-name="kefuxbtime"
									title="客服下班时间" data-container="body"  data-toggle="popover" 
									data-placement="right"
								data-content="<select data-name='offHours' data-path='/admin/offHours.do' class='ajax-dataItem hourSelect form-control'><option value='0'>00</option><option value='1'>01</option><option value='2'>02</option><option value='3'>03</option><option value='4'>04</option><option value='5'>05</option><option value='6'>06</option><option value='7'>07</option><option value='8'>08</option><option value='9'>09</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option><option value='13'>13</option><option value='14'>14</option><option value='15'>15</option><option value='16'>16</option><option value='17'>17</option><option value='18'>18</option><option value='19'>19</option><option value='20'>20</option><option value='21'>21</option><option value='22'>22</option><option value='23'>23</option></select>：<select class='minute form-control' style='width: auto;'><option value='0'>00</option><option value='1'>01</option><option value='2'>02</option><option value='3'>03</option><option value='4'>04</option><option value='5'>05</option><option value='6'>06</option><option value='7'>07</option><option value='8'>08</option><option value='9'>09</option><option value='10'>10</option><option value='11'>11</option><option value='12'>12</option><option value='13'>13</option><option value='14'>14</option><option value='15'>15</option><option value='16'>16</option><option value='17'>17</option><option value='18'>18</option><option value='19'>19</option><option value='20'>20</option><option value='21'>21</option><option value='22'>22</option><option value='23'>23</option><option value='24'>24</option><option value='25'>25</option><option value='26'>26</option><option value='27'>27</option><option value='28'>28</option><option value='29'>29</option><option value='30'>30</option><option value='31'>31</option><option value='32'>32</option><option value='33'>33</option><option value='34'>34</option><option value='35'>35</option><option value='36'>36</option><option value='37'>37</option><option value='38'>38</option><option value='39'>39</option><option value='40'>40</option><option value='41'>41</option><option value='42'>42</option><option value='43'>43</option><option value='44'>44</option><option value='45'>45</option><option value='46'>46</option><option value='47'>47</option><option value='48'>48</option><option value='49'>49</option><option value='50'>50</option><option value='51'>51</option><option value='52'>52</option><option value='53'>53</option><option value='54'>54</option><option value='55'>55</option><option value='56'>56</option><option value='57'>57</option><option value='58'>58</option><option value='59'>59</option></select><span data-readdatatype='editDoubleTime' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="panel panel-default">
				<div class="panel-heading">
					<p>彩票配置</p>
				</div>
				<div class="panel-body">
					<table class="table table-bordered table-striped">
						<tr>
							<td>系统彩开奖模式</td>
							<td>
								<a data-name="xitongcaicheckms"
								  data-toggle="popover" 
								class="  btn-popovers" 
								title="系统彩开奖模式"  
								data-container="body" 
								data-placement="right" 
								data-content="<select class='form-control'><option>百分比中奖</option></select><span data-readdatatype='fake'  class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>系统彩开奖中奖百分比</td>
							<td>
								<a 
								 
								class="  btn-popovers" data-name="xitongcaizjratio"
								title="系统彩开奖中奖百分比"  
								data-container="body"  data-toggle="popover" 
								data-placement="right" 
								data-content="<input class='form-control ajax-dataItem' data-path='/admin/lotteryRatio.do' data-name='lotteryRatio'  /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
					</table>
				</div>
			</div>
			<div class="panel panel-default">
				<div class="panel-heading">
					<p>试玩站点配置</p>
				</div>
				<div class="panel-body">
					<table class="table table-bordered table-striped">
 						<tr>
							<td>会员注册初始金额</td>
							<td>
								<a 
								class="  btn-popovers" data-name="huiyuanchushijine"
								title="会员注册初始金额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input class='form-control ajax-dataItem' data-path='/admin/registerInitialAmount.do' data-name='registerInitialAmount' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
						<tr>
							<td>开启注册试玩账号</td>
							<td>
								<a data-name="shiwanzhucekaiqi"
								class="  btn-popovers btn-kaiguanBtns" 
								title="开启注册试玩账号"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<select data-path='/admin/demoAccount.do' class='form-control ajax-dataItem' data-name='demoAccount'><option value='1'>开启</option><option value='0'>关闭</option></select><span data-readdatatype='turnon' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
								<span class="caozuo" style="margin-left: 50px;color: red;">请谨慎操作！</span>
							</td>
						</tr>
						<tr>
							<td>试玩账号初始金额</td>
							<td>
								<a 
								 data-name="shiwanchushijine"
								class=" btn-popovers" 
								title="试玩账号初始金额"   data-toggle="popover" 
								data-container="body" 
								data-placement="right" 
								data-content="<input class='form-control ajax-dataItem' data-path='/admin/demoInitialAmount.do' data-name='demoInitialAmount' /><span data-readdatatype='editNumber' class='span-c-iconWrapper span-c-iconWrapper-active'><svg class='icon svg-c-okIcon' aria-hidden='true'><use xlink:href='#icon-ok'></use></svg></span><span class='span-c-iconWrapper span-c-icon-close'><svg class='icon' aria-hidden='true'><use xlink:href='#icon-remove'></use></svg></span>" data-html='true'>
								</a>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
	</div>

<div class="modal fade" style="z-index:1070;" id="noticeModal">
    <div class="modal-dialog modal-sm" style="max-width:600px;">
      <div class="modal-content">
   
        <!-- 模态框头部 -->
        <div class="modal-header">
          <h4 class="modal-title">提示</h4>
          <button type="button" class="close" data-dismiss="modal">&times;</button>
        </div>
   
        <!-- 模态框主体 -->
        <div class="modal-body">
 			
        </div>
   
        <!-- 模态框底部 -->
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
        </div>
   
      </div>
    </div>
  </div>


<div class="modal fade" id="fanshuiRoleModal">
  <div class="modal-dialog">
    <div class="modal-content">
 
      <!-- 模态框头部 -->
      <div class="modal-header">
        <h4 class="modal-title">编辑返水规则</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>
 
      <!-- 模态框主体 -->
      <div class="modal-body">
      	<textarea id	="textarea-i-fanshuiRoleText" placeholder="输入新的返水规则" class="form-control" style="resize: none; width:100%;" rows="6" cols=""></textarea>
      </div>
      <!-- 模态框底部 -->
      <div class="modal-footer">
      	<button type="button" class="btn btn-primary" id="button-save-fanshuiRole">保存</button>
        <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
      </div>
 
    </div>
  </div>
</div>
		
		
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" style="width: 300px;left:30%;top:200px;">
            <div class="modal-body">
            	<form action="/admin/websiteLogoSetup.do" enctype="multipart/form-data" method="post">
					<input name="ids" value="1" hidden />
					<div id="i-item" style="margin-bottom: 20px;">
					
					</div>
					<div style="text-align: center">
						<button type="submit" class="btn btn-primary glyphicon glyphicon-ok"></button><span>　</span>
						<button type="button" class="btn btn-default glyphicon glyphicon-remove" data-dismiss="modal"></button>
					</div>
				</form>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" style="width: 300px;left:30%;top:200px;">
            <div class="modal-body">
            	<form action="/admin/updateWeChat.do" enctype="multipart/form-data" method="post">
					<input name="ids" value="2" hidden />
					<div id="i-item1" style="margin-bottom: 20px;">
					
					</div>
					<div style="text-align: center">
						<button type="submit" class="btn btn-primary glyphicon glyphicon-ok"></button><span>　</span>
						<button type="button" class="btn btn-default glyphicon glyphicon-remove" data-dismiss="modal"></button>
					</div>
				</form>
            </div>
        </div>
    </div>
</div>
	<script type="text/javascript" src="/js/zhengzeTools.js"></script>
	<script>
	var DATA_ARRAY
	var CURRENT_ID
	var gradeWidth;
	var runwayWidth;
	var allRobate;
	var robate;
	 var width
	$.ajax({
		url: "/admin/findSystemConfigure.do",
		type: "post",
		data: {},
		success: function(data) {
			var newData=data.data;
			 $(".img").attr("src","/d/cp/"+newData.logo) 
			 $(".img1").attr("src","/d/cp/"+newData.pc_wechat)
			 width =$("#runway").width();
			 allRobate=newData.minimumOdds;
			 $("#drag").css("left",allRobate*width+"px");
			 robate=(allRobate*100).toFixed(1);
			 allRobate=robate+"%";
			 gradeWidth=$("#runway").offset().left;
			 runwayWidth=$("#runway").width();
			 $(".agentMode .seradediv span").text(allRobate); 
			 
		},
		error: function(status) {
			showNormalNoticeModal("#div-i-noticeGenDan", "提示：", "网络繁忙")
		}
	})
	
	    var div1 = document.getElementById("runway");
	    var div2 = document.getElementById("drag");
	    var disX=0;
	    div2.onmousedown=fnDown;
	    function fnDown(ev)
	    {
	        var oEvent=ev||event;
	        disX=oEvent.clientX-div2.offsetLeft;
	        document.onmousemove=fnMove;
	        document.onmouseup=fnUp;
	    }
	
	    function fnMove(ev)
	    {
	        var oEvent=ev||event;
	        var moveWidth=oEvent.clientX-disX;
	        console.log(moveWidth)
	        if(moveWidth>=0 && moveWidth<=width){
	        	 div2.style.left=moveWidth+'px';
	        	 var percentage=(moveWidth/width);
	        	/*  allRobate=percentage*robate; */
	        	 allRobate=(percentage*100).toFixed(1);
	             $(".agentMode .seradediv span").text(allRobate+"%");
	        }else{
	        	return;
	        }
	    }
	    function fnUp()
	    {
	        document.onmousemove=null;
	        document.onmouseup=null;
	    }
	    
	    /* 确认调整的代理赔率 */
	    $(".agentMode .btn-infos").on("click",function(){
	    	var odds= $(".agentMode .seradediv span").text();
	    	$.ajax({
	    		url: "/admin/minimumOdds.do",
	    		type: "post",
	    		data: {odds:odds},
	    		success: function(data) {
	    			layer.msg("设置成功")
	    		},
	    		error: function(status) {
	    			showNormalNoticeModal("#div-i-noticeGenDan", "提示：", "网络繁忙")
	    		}
	    	})
	    })
	
	
	
	$(function () { 
		$("[data-toggle='popover']").popover()
	})

	$('.btn-popovers').on('shown.bs.popover', function (event) {
		var self = event.currentTarget
		
		var selfName = self.dataset.name
		var $Parent = $("#" + $(event.currentTarget).attr("aria-describedby"))
		if ($Parent.find("select").length == 1) {
			$Parent.find("select")[0].value = DATA_ARRAY[selfName]
		}
		else if ($Parent.find("input").length == 1){
			$Parent.find("input")[0].value = DATA_ARRAY[selfName]
		}
		else if ($Parent.find("select").length == 2) {
			var valu = DATA_ARRAY[selfName]
			var value1 = valu.slice(0, 2)
			var value2 = valu.slice(2, 4)
			if (value1[0] == "0") {
				value1 = value1[1]
			}
			if (value2[0] == "0") {
				value2 = value2[1]
			}			
			$Parent.find("select")[0].value = value1
			$Parent.find("select")[1].value = value2
		}
		var btn = $(this)
		$(".popover").each(function(index, element) {
			if (element.id != btn.attr("aria-describedby")) {
				$("[aria-describedby=" + element.id+ "]").popover('hide')
			}
		})
	})
	var sendAjAx = function(path, dataValue, successCallback) {
		if (path === "/admin/signInflag.do") {
			var newRequest = {
					url: path,
					type: "post",
					data: {},
					success: successCallback,
					error: function(status) {
					}
				}
			$("[data-qiandao]").each(function(index, element) {
				var value = $(element).text()
				if (value === "开启" || value === "固定金额") {
					value = "1"
				}
				else if (value === "关闭" || value === "随机金额") {
					value = "0"
				}
				newRequest.data[element.dataset.name] = value
			})
			 $("[data-showqiandao]").each(function(index, element) {
				var value = element.value 
				newRequest.data[element.dataset.name] = element.value
			})	 
			newRequest.data["id"] = CURRENT_ID
			ajax(newRequest)			
		} else if (path === "/admin/systemEnvelope.do") {
			var newRequest = {
					url: path,
					type: "post",
					data: {},
					success: successCallback,
					error: function(status) {
					}
				}
			$("[data-hongbao]").each(function(index, element) {
				var value = $(element).text()
				newRequest.data[element.dataset.name] = value
			})
			$("[data-showhongbao]").each(function(index, element) {
				var value = element.value 
				newRequest.data[element.dataset.name] = element.value
			})	
			newRequest.data["id"] = CURRENT_ID
			ajax(newRequest)			
		} else if (path === "/admin/updateDrawingSteup.do") {
			var newRequest = {
					url: path,
					type: "post",
					data: {},
					success: successCallback,
					error: function(status) {
					}
				}
			$("[data-tikuan]").each(function(index, element) {
				var value = $(element).text()
				if (value === "开启") {
					value = "1"
				}
				else if (value === "关闭") {
					value = "0"
				}
				newRequest.data[element.dataset.name] = value
			})
			 $("[data-showtikuan]").each(function(index, element) {
				var value = element.value 
				newRequest.data[element.dataset.name] = element.value
			})	 
			newRequest.data["id"] = CURRENT_ID
			ajax(newRequest)			
		}
		else if (path === "/activity/updateLuckyFlag.do") {
			var newRequest = {
					url: path,
					type: "post",
					data: {},
					success: successCallback,
					error: function(status) {
					}
				}
			$("[data-zhuanpan]").each(function(index, element) {
				var value = $(element).text()
				if (value === "开启") {
					value = "1"
				}
				else if (value === "关闭") {
					value = "0"
				}
				newRequest.data[element.dataset.name] = value
			})
			$("[data-showzhuanpan]").each(function(index, element) {
				var value = element.value 
				newRequest.data[element.dataset.name] = element.value
			})	
			newRequest.data["id"] = CURRENT_ID
			ajax(newRequest)	
		}
		else {
			var newRequest = {
					url: path,
					type: "post",
					data: dataValue,
					success: successCallback,
					error: function(status) {
					}
				}
			ajax(newRequest)			
		}
	}
	
	var editSelectOrInput = function(event, callback) {
		var data = {}
		var dataItem = event.target.closest(".popover-body").querySelector(".ajax-dataItem")
		data[dataItem.dataset.name] = dataItem.value	
		sendAjAx(dataItem.dataset.path, data, function(data) {
 			var $aElement = $("[aria-describedby=" + event.target.closest(".popover").id + "]")
			/*$aElement.text($(dataItem).find("option[value='" + dataItem.value + "']").text()) */
			callback($aElement, dataItem)
			DATA_ARRAY[$aElement[0].dataset.name] = dataItem.value
			$aElement.popover('hide')
		})			
	}
	
	var editDoubleTime = function(event, callback) {
		var data = {}
		var dataItem = event.target.closest(".popover-body").querySelector(".ajax-dataItem")
		var time1 = Number(dataItem.value) < 10 ? "0" + dataItem.value : dataItem.value
		var time2 = Number(dataItem.nextElementSibling.value) < 10 ? "0" + dataItem.nextElementSibling.value : dataItem.nextElementSibling.value 
		data[dataItem.dataset.name] = time1 + time2
		sendAjAx(dataItem.dataset.path, data, function(data) {
 			var $aElement = $("[aria-describedby=" + event.target.closest(".popover").id + "]")
			/*$aElement.text($(dataItem).find("option[value='" + dataItem.value + "']").text()) */
			callback($aElement, time1 + time2)
			DATA_ARRAY[$aElement[0].dataset.name] = dataItem.value
			$aElement.popover('hide')
		})		
	}
	
	$(".img").on("click",function(){
		var dataName=$(this).attr("dataName")
		var html="<input id='lianjie' style='width:100%; height:35px;'"
		if(dataName.indexOf("file")!=-1){
				html+="type='file' accept='.png,.jpg'"
		}else{
			html+="placeholder='输入下载链接' ";
		}
		html+=" name='"+dataName+"' />"
		$("#i-item").html(html)
		$("#myModal").modal("show")
	})
	
	$(".img1").on("click",function(){
		var dataName=$(this).attr("dataName")
		var html="<input id='weixinkefu' style='width:100%; height:35px;'"
		if(dataName.indexOf("file")!=-1){
				html+="type='file' accept='.png,.jpg'"
		}else{
			html+="placeholder='输入下载链接' ";
		}
		html+=" name='"+dataName+"' />"
		$("#i-item1").html(html)
		$("#myModal1").modal("show")
	})
	
	
	$("body").on("click", function(event) {
		if (event.target.closest(".span-c-icon-close") != null) {
			$("[aria-describedby=" + event.target.closest(".popover").id + "]").popover('hide')
			return
		}
		var closeSvg = event.target.closest(".span-c-iconWrapper-active")
		if (closeSvg != null) {
			//readdatatype
			if (closeSvg.dataset.readdatatype == "turnon") {
				//ajax-dataItem
				editSelectOrInput(event, function(aElement, dataItem) {
					aElement.text($(dataItem).find("option[value='" + dataItem.value + "']").text())
				})
			}
			else if (closeSvg.dataset.readdatatype == "editText") {
				var dataItem = event.target.closest(".popover-body").querySelector(".ajax-dataItem")
				var value = $(dataItem).val()
				if (!value) {
					showNoticeModal("无效的内容")
					return
				}
				if (value.length > 255) {
					showNoticeModal("内容过长")
					return					
				}
				editSelectOrInput(event, function(aElement, dataItem) {
					aElement.text($(dataItem).val())
				})
			}
			else if (closeSvg.dataset.readdatatype == "fake") {
				var $aElement = $("[aria-describedby=" + event.target.closest(".popover").id + "]")
				$aElement.popover('hide')
			}
			else if (closeSvg.dataset.readdatatype == "editNumber") {
				var dataItem = event.target.closest(".popover-body").querySelector(".ajax-dataItem")
				var numReg = /^[0-9]+$/
				var isValid = numReg.test($(dataItem).val())
				 if (!isValid) {
					showNoticeModal("请输入有效的数字")
					return
				} 
				editSelectOrInput(event, function(aElement, dataItem) {
					aElement.text($(dataItem).val())
				})				
			}
			else if (closeSvg.dataset.readdatatype == "editDoubleTime") {
				editDoubleTime(event, function(aElement, dataItem) {
					aElement.text(dataItem.slice(0, 2) + ":" + dataItem.slice(2, 4))
				})			
			}else if(closeSvg.dataset.readdatatype == "editNumbers"){
				var xiaoshuReg =  /^[0-9]+([.]{1}[0-9]{1,2})?$/;
				var dataItem = event.target.closest(".popover-body").querySelector(".ajax-dataItem")
				var isValid1 =! (xiaoshuReg.test($(dataItem).val()))
				
				if(isValid1 || ($(dataItem).val())<0 || ($(dataItem).val())>2)  {
				showNoticeModal("请输入有效的数字")
				return
				}
				editSelectOrInput(event, function(aElement, dataItem) {
					aElement.text($(dataItem).val())
				})			
			}
			else if (closeSvg.dataset.readdatatype == "editUrl") {
				var dataItem = event.target.closest(".popover-body").querySelector(".ajax-dataItem")
				var isValid = checkUrl($(dataItem).val())
				if (!isValid) {
					showNoticeModal("无效的 url")
					return
				}
				editSelectOrInput(event, function(aElement, dataItem) {
					aElement.text($(dataItem).val())
				})				
			}
		}
	})
	
	$(".td-speicalRoleGuiZe a").on("click", function(e) {
		//
		$("#textarea-i-fanshuiRoleText").text($(e.currentTarget).text())
		$(".span-c-icon-close").trigger("click")
		$("#fanshuiRoleModal").modal("show")
	})
	
	$("#button-save-fanshuiRole").on("click", function(e) {
		var roleValue = $("#textarea-i-fanshuiRoleText").val()
		if (roleValue.trim() == "") {
			showNoticeModal("返水规则不得为空")
			return
		}
		if (roleValue.length > 600) {
			showNoticeModal("返水规则过长")
			return
		}
		var urlPath = "/admin/defectionRuleUp.do"
			var newRequest = {
				url: urlPath,
				type: "post",
				data: {"fanshuiContent": roleValue, "id": CURRENT_ID,},
				success: function(data) {
					$("#fanshuiRoleModal").modal("hide")
					$(".td-speicalRoleGuiZe a").text(roleValue)
				},
				error: function(status) {
				}
			}
		ajax(newRequest)		
	})
	
	var getAllSelectData = function() {
		var urlPath = "/admin/findSystemConfigure.do"
		var newRequest = {
			url: urlPath,
			type: "post",
			data: {},
			success: function(data) {
				var newData = JSON.parse(data)
				DATA_ARRAY = newData.data
				CURRENT_ID = DATA_ARRAY.id
				$('.btn-popovers').each(function(index, element) {
					var name = element.dataset.name
					var value = DATA_ARRAY[name]
					if (element.classList.contains("btn-jiangjinBtns")) {
						if (value == "1") {
							value = "固定金额"
						} else {
							value = "随机金额"
						}							
					}					
					else if (element.classList.contains("btn-kaiguanBtns")) {
						if (value == "1") {
							value = "开启"
						} else {
							value = "关闭"
						}						
					}
					//btn-shifouTypeBtns
					else if (element.classList.contains("btn-timesData")) {
						value = value.slice(0, 2) + ":" + value.slice(2, 4)
					}
					else if (element.classList.contains("btn-shifouTypeBtns")) {
						if (value == "1") {
							value = "是"
						} else {
							value = "否"
						}								
					}
					element.innerHTML = value
				})
				$(".td-speicalRoleGuiZe a").text(DATA_ARRAY.fanshuiContent)
			},
			error: function(status) {
			}
		}
		ajax(newRequest)		
	}
	getAllSelectData()
		</script>
</body>
</html>